@import '../../style.less';

@fulModal: ~'@{inbiz-prefix}-subTable-full-modal';

.@{inbiz-prefix}-full-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: @inbiz-base-cell-color;
  font-size: 16px !important;
  line-height: 40px !important;
  .common-font;

  .@{inbiz-prefix}-full-modal-header-btn-wrapper {
    margin-left: auto;
  }

  .ant-btn {
    padding: 0;
    color: #999;
    &:first-child {
      span {
        font-size: 18px;
      }
    }
    &:focus,
    &:hover {
      color: #333;
      background: #fff;
    }
    &:last-child {
      margin-right: 0;
      span {
        font-size: 16px;
      }
    }
  }
}

.@{fulModal}.ant-modal {
  max-width: 100%;
  padding-bottom: 0;
  overflow: hidden;

  .ant-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    .ant-modal-header {
      height: 40px;
      padding: 0 20px;
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;

      .ant-modal-title {
        .common-font;

        color: @inbiz-base-cell-color;
        font-size: 22px;
        line-height: 30px;
      }
    }

    .ant-modal-close-x {
      line-height: 60px;

      svg {
        width: 14px;
        height: 14px;
        color: @inbiz-icon-base-color;

        &:hover {
          color: @inbiz-base-cell-color;
        }
      }
    }

    .ant-modal-body {
      flex: 1 0;
      padding: 20px;
      overflow: auto;
    }

    .ant-modal-footer {
      padding: 20px;

      .ant-btn {
        margin-right: 10px;

        &:last-child {
          margin-right: 0;
        }
      }

      .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
        margin: 0 10px 0 0;

        &:last-child {
          margin: 0;
        }
      }

      .ant-btn-two-chinese-chars > *:not(.anticon) {
        margin-right: 0;
      }
    }
  }
}
